#ifndef SPORTPAGEVIEW_HPP
#define SPORTPAGEVIEW_HPP

#include <gui_generated/sportpage_screen/SportPageViewBase.hpp>
#include <gui/sportpage_screen/SportPagePresenter.hpp>

class SportPageView : public SportPageViewBase
{
public:
    SportPageView();
    virtual ~SportPageView() {}
    virtual void setupScreen();
    virtual void tearDownScreen();
		//退出运动模式界面
		virtual void SportPageExit(uint8_t newFiveKeyFunc);
		//列表更新
    virtual void SportScrollListUpdateItem(SportElement& item, int16_t itemIndex);
protected:
    // Callback which is executed when a item in the scroll list is selected.
    // The parameter itemSelected is the selected item.
    Callback<SportPageView, int16_t> SportScrollListItemSelectedCallback;
    void SportScrollListItemSelectedHandler(int16_t itemSelected);
};

#endif // SPORTPAGEVIEW_HPP
